home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_glimpse.idb / usr / freeware / src / glimpse-3.0 / libtemplate / Makefile.linux.z / Makefile.linux
Makefile  |  1997-09-09  |  5KB  |  102 lines

  1. #
  2. #  Makefile for the common source directory
  3. #
  4. #  $Id: Makefile.in,v 1.10 1994/09/30 22:11:28 hardy Exp $
  5. #
  6. SUBDIRS        = util template #md5 util url template
  7. DEBUG_TOP    = #-O #-g #-DDEBUG
  8.  
  9. prefix = /usr/local/harvest
  10. INSTALL_BINDIR    = $(prefix)/bin
  11. INSTALL_LIBDIR    = $(prefix)/lib
  12. INSTALL_MANDIR     = $(prefix)/man
  13.  
  14. SHELL        = /bin/sh
  15. CC        = gcc -m486
  16. INSTALL        = cp #install -c
  17. INSTALL_BIN     = ${INSTALL}
  18. INSTALL_FILE     = ${INSTALL} #-m 644
  19. RANLIB        = ranlib
  20. LN_S        = ln -s
  21. XTRA_LIBS    =  -lresolv -lm
  22.  
  23.  
  24. # old variables for backward compatability
  25. INSTALLDIR     = $(INSTALL_BINDIR)
  26. INSTALL_SCRIPT     = $(INSTALL_BIN)
  27.  
  28. INSTALL_DIRS    = $(prefix) $(INSTALL_BINDIR) $(INSTALL_LIBDIR) \
  29.           $(INSTALL_MANDIR)
  30.  
  31. all:    #all-gdbm
  32.     @for dir in $(SUBDIRS); do \
  33.         echo Making $@ in $$dir; \
  34.         (cd $$dir; $(MAKE) -f Makefile.linux $(MFLAGS) CC="$(CC)" SUBDIRCFLAGS="$(SUBDIRCFLAGS)" SUBDIRLINKFLAGS="$(SUBDIRLINKFLAGS)" SHELL="$(SHELL)" HAVE_DIRENT_H="$(HAVE_DIRENT_H)" HAVE_SYS_DIR_H="$(HAVE_SYS_DIR_H)" HAVE_SYS_NDIR_H="$(HAVE_SYS_NDIR_H)" HAVE_NDIR_H="$(HAVE_NDIR_H)" UTIME="$(UTIME)" STRUCTURED_QUERIES="$(STRUCTURED_QUERIES)" ISO_CHAR_SET="$(ISO_CHAR_SET)" SFS_COMPAT="$(SFS_COMPAT)"\
  35.             INSTALL_BINDIR="$(INSTALL_BINDIR)" \
  36.             INSTALL_LIBDIR="$(INSTALL_LIBDIR)" \
  37.             INSTALL_MANDIR="$(INSTALL_MANDIR)" \
  38.             RANLIB="$(RANLIB)" \
  39.             DEBUG_TOP="$(DEBUG_TOP)" \
  40.             INSTALL_BIN="$(INSTALL_BIN)" \
  41.             INSTALL_FILE="$(INSTALL_FILE)" \
  42.             INSTALLDIR="$(INSTALL_BINDIR)" \
  43.             INSTALL_SCRIPT="$(INSTALL_SCRIPT)"  $@); \
  44.     done
  45.  
  46. install:
  47.     @for dir in $(SUBDIRS); do \
  48.         echo Making $@ in $$dir; \
  49.         (cd $$dir; $(MAKE) $(MFLAGS) CC="$(CC)" SUBDIRCFLAGS="$(SUBDIRCFLAGS)" SUBDIRLINKFLAGS="$(SUBDIRLINKFLAGS)" SHELL="$(SHELL)" HAVE_DIRENT_H="$(HAVE_DIRENT_H)" HAVE_SYS_DIR_H="$(HAVE_SYS_DIR_H)" HAVE_SYS_NDIR_H="$(HAVE_SYS_NDIR_H)" HAVE_NDIR_H="$(HAVE_NDIR_H)" UTIME="$(UTIME)" STRUCTURED_QUERIES="$(STRUCTURED_QUERIES)" ISO_CHAR_SET="$(ISO_CHAR_SET)" SFS_COMPAT="$(SFS_COMPAT)"\
  50.             INSTALL_BINDIR="$(INSTALL_BINDIR)" \
  51.             INSTALL_LIBDIR="$(INSTALL_LIBDIR)" \
  52.             INSTALL_MANDIR="$(INSTALL_MANDIR)" \
  53.             RANLIB="$(RANLIB)" \
  54.             INSTALL_BIN="$(INSTALL_BIN)" \
  55.             INSTALL_FILE="$(INSTALL_FILE)" \
  56.             INSTALLDIR="$(INSTALL_BINDIR)" \
  57.             INSTALL_SCRIPT="$(INSTALL_SCRIPT)" $@); \
  58.     done
  59.  
  60. clean:
  61.     -@for dir in lib $(SUBDIRS); do \
  62.         echo Making $@ in $$dir; \
  63.         (cd $$dir; $(MAKE) $(MFLAGS) CC="$(CC)" SUBDIRCFLAGS="$(SUBDIRCFLAGS)" SUBDIRLINKFLAGS="$(SUBDIRLINKFLAGS)" SHELL="$(SHELL)" HAVE_DIRENT_H="$(HAVE_DIRENT_H)" HAVE_SYS_DIR_H="$(HAVE_SYS_DIR_H)" HAVE_SYS_NDIR_H="$(HAVE_SYS_NDIR_H)" HAVE_NDIR_H="$(HAVE_NDIR_H)" UTIME="$(UTIME)" STRUCTURED_QUERIES="$(STRUCTURED_QUERIES)" ISO_CHAR_SET="$(ISO_CHAR_SET)" SFS_COMPAT="$(SFS_COMPAT)"\
  64.             INSTALL_BINDIR="$(INSTALL_BINDIR)" \
  65.             INSTALL_LIBDIR="$(INSTALL_LIBDIR)" \
  66.             INSTALL_MANDIR="$(INSTALL_MANDIR)" \
  67.             RANLIB="$(RANLIB)" \
  68.             INSTALL_BIN="$(INSTALL_BIN)" \
  69.             INSTALL_FILE="$(INSTALL_FILE)" \
  70.             INSTALLDIR="$(INSTALL_BINDIR)" \
  71.             INSTALL_SCRIPT="$(INSTALL_SCRIPT)" $@); \
  72.     done
  73.  
  74. #realclean:    clean
  75. #    -rm -f Makefile include/autoconf.h include/paths.h config.status *~ core
  76. #    -@for dir in gdbm lib $(SUBDIRS); do \
  77. #        echo Making $@ in $$dir; \
  78. #        (cd $$dir; $(MAKE) $(MFLAGS) CC="$(CC)" SUBDIRCFLAGS="$(SUBDIRCFLAGS)" SUBDIRLINKFLAGS="$(SUBDIRLINKFLAGS)" SHELL="$(SHELL)" HAVE_DIRENT_H="$(HAVE_DIRENT_H)" HAVE_SYS_DIR_H="$(HAVE_SYS_DIR_H)" HAVE_SYS_NDIR_H="$(HAVE_SYS_NDIR_H)" HAVE_NDIR_H="$(HAVE_NDIR_H)" UTIME="$(UTIME)" STRUCTURED_QUERIES="$(STRUCTURED_QUERIES)" ISO_CHAR_SET="$(ISO_CHAR_SET)" SFS_COMPAT="$(SFS_COMPAT)"\
  79. #            INSTALL_BINDIR="$(INSTALL_BINDIR)" \
  80. #            INSTALL_LIBDIR="$(INSTALL_LIBDIR)" \
  81. #            INSTALL_MANDIR="$(INSTALL_MANDIR)" \
  82. #            RANLIB="$(RANLIB)" \
  83. #            INSTALL_BIN="$(INSTALL_BIN)" \
  84. #            INSTALL_FILE="$(INSTALL_FILE)" \
  85. #            INSTALLDIR="$(INSTALL_BINDIR)" \
  86. #            INSTALL_SCRIPT="$(INSTALL_SCRIPT)"  $@); \
  87. #    done
  88.  
  89. #
  90. #  Compiles and installs gdbm from scratch.  Works with gdbm-1.7.3
  91. #
  92. all-gdbm:
  93.     @echo Making all in gdbm
  94.     @rm -f gdbm/autoconf.h
  95.     @$(LN_S) ../include/autoconf.h gdbm/autoconf.h
  96.     @(cd gdbm; \
  97.         $(MAKE) $(MFLAGS) CC="$(CC)" SUBDIRCFLAGS="$(SUBDIRCFLAGS)" SUBDIRLINKFLAGS="$(SUBDIRLINKFLAGS)" SHELL="$(SHELL)" HAVE_DIRENT_H="$(HAVE_DIRENT_H)" HAVE_SYS_DIR_H="$(HAVE_SYS_DIR_H)" HAVE_SYS_NDIR_H="$(HAVE_SYS_NDIR_H)" HAVE_NDIR_H="$(HAVE_NDIR_H)" UTIME="$(UTIME)" STRUCTURED_QUERIES="$(STRUCTURED_QUERIES)" ISO_CHAR_SET="$(ISO_CHAR_SET)" SFS_COMPAT="$(SFS_COMPAT)" gdbm.h libgdbm.a; \
  98.         $(INSTALL_FILE) gdbm.h ../include/gdbm.h; \
  99.         $(INSTALL_FILE) libgdbm.a ../lib/libgdbm.a; \
  100.         $(RANLIB) ../lib/libgdbm.a \
  101.     )
  102.